package 内部类作业2;

public class Car {
    private   Engine   engine;

    public Car(Engine engine) {
        this.engine = engine;
    }
    public   void   yunXIng(){
        new Engine(){
            @Override
            public String getTYpe() {
                System.out.println("F-100通用电气发动机");
                return   "F-100通用电气发动机";
            }

            @Override
            public double drive() {
                double speed;
                double value=0;
                double v = value * 0.1;
                return  v;
            }
        };
    }
}
